package cool.taomu.toolkit.retry

import java.lang.annotation.ElementType
import java.lang.annotation.Retention
import java.lang.annotation.RetentionPolicy
import java.lang.annotation.Target

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
annotation Retry {
    int maxAttempts = 3;
    long delay = 500;
    boolean exponentialBackoff = true;
    double rateLimit = 2.0; // permits per second
}
